<!DOCTYPE html>
<html>
	<head>
		<meta charset="{CHARSET}">
		<title></title>
		<script type="text/javascript">
			function del(thisa){		//this表示链接对象
				//链接对象的父节点是td，td的父节点是tr
				tr= thisa.parentNode.parentNode;
				//tr的父节点是table
				table = tr.parentNode;
				//table删除子元素，删除一行
				table.removeChild(tr);
			}
		</script>
	</head>
	<body>
		<table border="1" id="mytable" align="center" width="80%">
			<tr>
				<td>aaa</td>
				<td>aaa</td>
				<td><a href="#" onclick="del(this)">删除</a></td>
			</tr>
			<tr>
				<td>bbb</td>
				<td>bbb</td>
				<td><a href="#" onclick="del(this)">删除</a></td>
			</tr>
			<tr>
				<td>ccc</td>
				<td>ccc</td>
				<td><a href="#" onclick="del(this)">删除</a></td>
			</tr>
		</table>
	</body>
</html>
